@extends('layouts.default')
@section('content') 
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-table"></i>
        </div>
        <h5>{{ Lang::get('messages.customers_table') }}</h5>
        <div class="toolbar">  
            {{ Helpers\Helper::fa_link_to_action('glyphicon glyphicon-plus',
                            'CustomerController@create',
                            Lang::get('messages.add_btn'),null,array(
                            'class'=>'btn btn-success btn-sm btn-round'))
            }}          
        </div>
    </header>
    <div id="collapse4" class="body">
        <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr> 
                    <th>{{ Lang::get('customer.customer') }}</th>
                    <th>{{ Lang::get('customer.email') }}</th>
                    <th>{{ Lang::get('customer.drpasportid') }}</th>
                </tr>
            </thead>
            <tbody>
                @foreach ($values as $v)
                <tr>                                    
                    <td>{{ link_to_action('CustomerController@show', 
                                    $v->drfirstname.' '.$v->drlastname, $v->drpasportid)}}</td> 
                    <td>{{ $v->DREMAIL }}</td>  
                    <td>{{ $v->drpasportid }}</td> 
                </tr>                                                            
                @endforeach
            </tbody>
        </table>
    </div>
</div>
@stop

